/****************************************************
	文件：TestItem.cs
	作者：林文豪
	日期：2021/05/05 16:21:23
	功能：Noting
*****************************************************/
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class TestItem : MonoBehaviour {
	public Button DisplayUI;

	private void OnTriggerEnter2D(Collider2D other) {
		if (other.gameObject.CompareTag("Player")) {
			DisplayUI.gameObject.SetActive(true);
		}
	}
	private void OnTriggerExit2D(Collider2D other) {
		if (other.gameObject.CompareTag("Player")) {
			DisplayUI.gameObject.SetActive(false);
		}
	}
}

